/*
 * @(#)TaskGridItemSelectionEditPolicy.java.java        0.00 2008/01/04
 */
package jp.ekasi.pms.ui.ganttchart.gef.editpolicy;

import org.eclipse.gef.EditPart;
import org.eclipse.gef.Request;
import org.eclipse.gef.editpolicies.AbstractEditPolicy;

/**
 * @author Yuusuke Hikime
 */
public class TaskGridItemSelectionEditPolicy extends AbstractEditPolicy {

	@Override
	public EditPart getTargetEditPart(Request request) {
		if(REQ_ADD.equals(request.getType())) {
			return getHost();
		}
		return super.getTargetEditPart(request);
	}
}
